package com.yunlongcoding.cahuomarketing.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品基础信息表
 */
public class ChmGoods implements Serializable {

    private static final long serialVersionUID = 4957542145887587251L;


    // 商品表主键id
    private Long id;

    // 商品分类id
    private Long categoryId;

    // 商品规格，保存该商品的所有用特殊符号隔开的规格id字符串，如果没有规格，那么默认就是一款商品
    private Long specificationIds;

    // 商品名称
    private String goodsName;

    // 商品描述
    private String goodsDescription;

    // 商品图1
    private String goodsPic1;

    // 商品图2
    private String goodsPic2;

    // 商品图3
    private String goodsPic3;

    // 商品详情
    private String content;

    // 商品编号
    private Long goodsNumber;

    // 商品价格，当有单品时，价格为最低单品售价，不允许输入，当不选规格的时候，没有额外单品时，价格可以录入，等同于改单品的价格。
    private BigDecimal price;

    // 商品市场价
    private BigDecimal marketPrice;

    // 商品总计库存
    private Long totalStock;

    // 商品条形码
    private String barcode;

    // 商品状态 （0上架，正常 1下架 2删除）
    private Short status;

    // 商品所需积分（如果属于积分商城，那么需要多少积分）
    private Long integral;

    // 所属商城，标识属于商城还是积分商城，0商城，1积分商城
    private Short belongTo;

    // 商品总评论数
    private Long totalComment;

    // 商品总收藏数
    private Long totalCollect;

    // 总销量
    private Long totalSalesVolume;

    // 月销量
    private Long monthSalesVolume;

    // 创建时间
    private Date createTime;

    // 更新时间
    private Date updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public Long getSpecificationIds() {
        return specificationIds;
    }

    public void setSpecificationIds(Long specificationIds) {
        this.specificationIds = specificationIds;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName == null ? null : goodsName.trim();
    }

    public String getGoodsDescription() {
        return goodsDescription;
    }

    public void setGoodsDescription(String goodsDescription) {
        this.goodsDescription = goodsDescription == null ? null : goodsDescription.trim();
    }

    public String getGoodsPic1() {
        return goodsPic1;
    }

    public void setGoodsPic1(String goodsPic1) {
        this.goodsPic1 = goodsPic1 == null ? null : goodsPic1.trim();
    }

    public String getGoodsPic2() {
        return goodsPic2;
    }

    public void setGoodsPic2(String goodsPic2) {
        this.goodsPic2 = goodsPic2 == null ? null : goodsPic2.trim();
    }

    public String getGoodsPic3() {
        return goodsPic3;
    }

    public void setGoodsPic3(String goodsPic3) {
        this.goodsPic3 = goodsPic3 == null ? null : goodsPic3.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Long getGoodsNumber() {
        return goodsNumber;
    }

    public void setGoodsNumber(Long goodsNumber) {
        this.goodsNumber = goodsNumber;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getMarketPrice() {
        return marketPrice;
    }

    public void setMarketPrice(BigDecimal marketPrice) {
        this.marketPrice = marketPrice;
    }

    public Long getTotalStock() {
        return totalStock;
    }

    public void setTotalStock(Long totalStock) {
        this.totalStock = totalStock;
    }

    public String getBarcode() {
        return barcode;
    }

    public void setBarcode(String barcode) {
        this.barcode = barcode == null ? null : barcode.trim();
    }

    public Short getStatus() {
        return status;
    }

    public void setStatus(Short status) {
        this.status = status;
    }

    public Long getIntegral() {
        return integral;
    }

    public void setIntegral(Long integral) {
        this.integral = integral;
    }

    public Short getBelongTo() {
        return belongTo;
    }

    public void setBelongTo(Short belongTo) {
        this.belongTo = belongTo;
    }

    public Long getTotalComment() {
        return totalComment;
    }

    public void setTotalComment(Long totalComment) {
        this.totalComment = totalComment;
    }

    public Long getTotalCollect() {
        return totalCollect;
    }

    public void setTotalCollect(Long totalCollect) {
        this.totalCollect = totalCollect;
    }

    public Long getTotalSalesVolume() {
        return totalSalesVolume;
    }

    public void setTotalSalesVolume(Long totalSalesVolume) {
        this.totalSalesVolume = totalSalesVolume;
    }

    public Long getMonthSalesVolume() {
        return monthSalesVolume;
    }

    public void setMonthSalesVolume(Long monthSalesVolume) {
        this.monthSalesVolume = monthSalesVolume;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}